package com.web.controller;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.web.common.pojos.Car;
import com.web.common.responseResult.ResponseResult;
import com.web.common.vo.CompareInfoVo;
import com.web.mapper.CarMapper;
import com.web.service.Task3Service;
import com.web.service.Task5Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * [一句话描述该类的功能]
 *
 * @author : [Lenovo]
 * @version : [v1.0]
 * @createTime : [2024/6/13 下午2:17]
 */
@RestController
@RequestMapping("/task5")
@Slf4j
public class Task5Controller  {
    @Autowired
    private Task5Service task5Service;
    @GetMapping("/compare")
    public ResponseResult<CompareInfoVo> getCompareInfo()
    {
        return task5Service.getCompareInfo();
    }
}
